Dynomotion

Group: DynoMotion Message: 12236 From: cnc_machines Date: 9/9/2015
Subject: Spindle Stall
Greetings,

Just finishing up a lathe with live tooling. Working very well, but wondering what to do in the event of the main spindle or the live tooling spindle stalling. Each servo controlling these has a fault output, just trying to figure out the best way to use these outputs. I am thinking of using the following code in the INIT program:

for (;;) // loop forever
    {
        int result;
        WaitNextTimeSlice();
   
if (ReadBit(1025) || ReadBit(1026))
    DisableAxis(0);  // Disable all axes
    DisableAxis(1);
    DisableAxis(2);
    printf("Spindle Torque Overload\n");  // send message to console
   
    }

I believe there is an error log. Is there a way to send the torque overload to that log as well, or is the Console the only option?

I would certainly appreciate suggestions if there are better ways.

Thanks,

Scott



Group: DynoMotion Message: 12237 From: Tom Kerekes Date: 9/9/2015
Subject: Re: Spindle Stall
Hi Scott,

I see several issues.

#1 the "if" statement only disables axis 0.  See if this post helps:
#2 continuously disabling and printing messages thousands of times while the inputs are present isn't a good idea.  Maybe add an "AND" condition to do so only if any axis is enabled.  ie.

if ((ReadBit(1025) || ReadBit(1026)) && (ch0->Enable || ch1->Enable || ch2->Enable)

There isn't currently a log capability from KFLOP other than the Console when KMotion is running.

HTH
Regards
TK



Group: DynoMotion Message: 12239 From: cnc_machines Date: 9/10/2015
Subject: Re: Spindle Stall
Tom,

Thanks for the input, still learning how to program in C. I started reading in that post, but it is 126 messages long! Seems like you have answered these questions a time or two. I think from you example code I can get it working.

Can you clarify the log file located in the following location? If I write out to the console does it automatically get saved here? When I open it I see that it has my following errors here. I have been planning on referencing this file as a form of error tracking. Thought it would be nice to add my torque fault to the same location.

C:\KMotion433k\KMotion\Data

Thanks,

Scott
Group: DynoMotion Message: 12244 From: Tapio Larikka Date: 9/11/2015
Subject: Re: Spindle Stall

Hi Scott,
 
With servo driven spindles I think KFlop should "natively" catch the stall, given that max following error is small enough. I suppose that the main spindle is rotational axis
when live tooling is in use.
 
Better than being notified of a stall is being informed before it happens. Check if your drives put out analog signal indicating load.
If so then you caa connect this signal to Kanalog (if present, and after verifying maxlimits) ADC and route it to a bar graph through persist data.
 
I did this with my vfd driven router spindle and it works well. Even new guys understand the green-yellow-red bar graph very quickly.
Also helpful in setting feeds and cutting dephts if running seriously undersized spindle like mine is.
 
Rgds,
 
Tapio